Setting up multiple Web sites
You can host up to 50 Web sites on your AppleShare IP server. To host multiple sites, you need to
• |
obtain a DNS name or IP address for each site |
• |
set up a folder for each site |
• |
configure the Multi Domain Settings file |
• |
configure the IP Secondary Addresses file if you're using multiple IP addresses |
DNS names or IP addresses?
If people will access your Web sites using browsers that support HTTP 1.1, you can configure your Web sites using multiple DNS names and one IP address. For example, if your domain name is company.com, you can configure Web sites called finance.company.com and hr.company.com.
If people will access your Web sites using older Web browsers (for example, Netscape Navigator 2.0 or earlier, or Microsoft Internet Explorer 2.1 or earlier), you need to configure your Web sites using multiple IP addresses. You obtain valid IP addresses for your server from your network administrator or Internet service provider. You need one IP address for each Web site you want to create.
Setting up folders for your Web sites
To set up folders:
1 |
For each Web site on your server, create a folder anywhere on the server. |
2 |
If you want people visiting the Web sites to see a default page, create a default page in each folder. |
|
If you don't create a default page, people visiting each Web site will see a directory list of its files. |
3 |
Make sure each Web folder contains folders named Plug-Ins and Error Files. |
Configuring the Multi Domain Settings file
The Multi Domain Settings file defines the address, port number, and location of each of your Web site folders.
To configure the Multi Domain Settings file:
1 |
Make sure Web plug-ins are enabled. |
2 |
In a text-editing application, open the Multi Domain Settings text file (in the Plug-Ins folder in the default Web folder). |
3 |
If you wish, enter a comment line by typing a semicolon (;) followed by a comment and a Return. |
4 |
Enter the following information about the site, all on one line: |
|
• |
dns=name |
|
Replace "name" with the domain name or IP address of the Web site. |
• |
port=80 |
|
Use the port number for this site's Web service (default port is 80). |
• |
path=Disk Name:Folder Name |
|
Use the name of the disk, followed by a colon and the name of the Web site folder. |
|
5 |
Type a Return, then repeat steps 3 and 4 for each Web site folder. |
6 |
Note the folder listed in the first entry of the Multi Domain Settings file. Then save the file and quit the application. |
7 |
Move the Remote Admin folder from the default Web folder into the folder listed in the first entry of the Multi Domain Settings file. |
8 |
Start and stop the Web server. |
9 |
Check to be sure the multi-domain entries are correct. |
10 |
Open the Plug-In Messages file and check for errors. |
Example of a Multi Domain Settings file:
|
; Client A Site |
|
dns=company.com |
port=80 |
path=Disk Name:Client A folder |
|
; Client B Site |
|
|
|
dns=11.222.3.3 |
port=80 |
path=Disk Name:Client B folder |
The URL for Client A Site is http://company.com. The URL for Client B Site is http://11.222.3.3.
Configuring multiple IP addresses
IP addresses you configure serve as secondary addresses to your primary IP address, subnet mask, and router address defined in the TCP/IP control panel.
To configure multiple IP addresses:
1 |
Create a text file named "IP Secondary Addresses" and save it in the Preferences folder inside your server's System Folder. |
2 |
For each Web site, type the following on one line, followed by a Return: |
|
• |
ip=[IP address] |
• |
sm=[subnet mask address] |
|
Include only if the address's subnet mask is different from that defined in the TCP/IP control panel. |
• |
rt=[router address] |
|
Include only if the address's router address is different from that defined in the TCP/IP control panel. |
|
Example of an IP Secondary Addresses file:
|
;IP Address |
|
Subnet Mask |
|
Router Addresses |
|
ip=164.16.0.200 |
|
sm=255.2.2.0 |
|
rt=164.16.0.1 |
|
ip=164.16.0.201 |
|
|
|
rt=164.16.0.1 |
|
ip=164.16.0.202 |
|
|
|
|
Turning off multiple Web sites
To stop hosting multiple Web sites:
1 |
Remove the Multi Domain Settings file from the Plug-Ins folder in the default Web folder. |
2 |
Move the Remote Admin folder back to the default Web folder. |
Related topic
|